package com.neuq.animaladoption.anno;

import com.neuq.animaladoption.validation.AnimalStateValidation;
import com.neuq.animaladoption.validation.UserIdentityValidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {AnimalStateValidation.class})
public @interface AnimalState {
    String message() default "{animalstate参数的值只能是已被收养，未被收养，或者去世}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
